package org.qiyu.live.im.router.provider.cluster;


import org.apache.dubbo.rpc.Invoker;
import org.apache.dubbo.rpc.RpcException;
import org.apache.dubbo.rpc.cluster.Cluster;
import org.apache.dubbo.rpc.cluster.Directory;

/**
 * @Description: 基于Clust去做spi扩展,实现根据rpc上下文来选择具体的请求的机器
 * @Author zhangguangyan
 * @Date 2023/09/30/ 12:17:47
 */
public class ImRouterCluster implements Cluster {

    @Override
    public <T> Invoker<T> join(Directory<T> directory, boolean buildFilterChain) throws RpcException {
        return new ImRouterClusterInvoker<>(directory);
    }
}